package com.netty.bfport.http.common.es;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: zhaoyang05
 * @Data: 2022/3/28 13:36
 * @Description
 */
@Data
@Accessors(chain = true)
//@Document(indexName = "test", type = "user")
public class UserMsgDO {

    private String id;

    private String sex;

    private String name;

    private Integer age;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date create_time;

}
